package com.ym.medical.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.constant.BaseEntity;
import com.ym.medical.enums.CommentTypeEnum;
import com.ym.medical.enums.CommentTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * 用户点赞对象 user_like_record
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("用户点赞-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_like_record")
public class UserLikeRecordEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 板块
	 */
	@ApiModelProperty("板块")
	@JsonSerialize(converter = CommentTypeEnum.Covert.class)
	private String plate;

	/**
	 * 相关记录ID
	 */
	@ApiModelProperty("相关记录ID")
	private Long recordId;

	/**
	 * 点赞人
	 */
	@ApiModelProperty("点赞人")
	private Long upPerson;

	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	private Date creTime;

}
